<div ng-controller="DataGridDemoItemRendererCtrl">
    <wi-datagrid  dataProvider="dgData" wid="dg" width="100%" height="300"
                  pagemode="client" showno="true">
        <wi-datagrid-column headtext="姓名" datafield="username" width="150"></wi-datagrid-column>
        <wi-datagrid-column headtext="住址" datafield="address" width="90"></wi-datagrid-column>
        <wi-datagrid-column headtext="日期" datafield="date" align='center'></wi-datagrid-column>
        <wi-datagrid-column headtext="操作" itemrenderer="myColumnRender.html">
            <script type="text/ng-template" id="myColumnRender.html">
                <span>
                    <input type="button" class="wi-btn" ng-click="$emit('itemClickHandler',pagedata[idx])" value="查看">
                </span>
            </script>
        </wi-datagrid-column>
    </wi-datagrid>
</div>
